const { sequelize }= require('../utils/sequelize');

const Student = require('../model/Student');
// const ClassRoom = require('../model/ClassRoom');
const Course = require('../model/Course');
const Academy = require('../model/Academy');
const StudentCourse = require('../model/StudentCourse');
const CourseType = require('../model/CourseType');
const Grade = require('../model/Grade');
const Teacher = require('../model/Teacher');
// const ClassTime = require('../model/ClassTime');
const Notice = require('../model/Notice');

function initModel() {
    sequelize.define(Student.name, Student.data, Student.options);
    // sequelize.define(ClassRoom.name, ClassRoom.data, ClassRoom.options);
    sequelize.define(Course.name, Course.data, Course.options);
    sequelize.define(Academy.name, Academy.data, Academy.options);
    sequelize.define(StudentCourse.name, StudentCourse.data, StudentCourse.options);
    sequelize.define(CourseType.name, CourseType.data, CourseType.options);
    sequelize.define(Grade.name, Grade.data, Grade.options);
    sequelize.define(Teacher.name, Teacher.data, Teacher.options);
    // sequelize.define(ClassTime.name, ClassTime.data, ClassTime.options);
    sequelize.define(Notice.name, Notice.data, Notice.options);
}

module.exports = initModel;
